'use strict'

class image {
    constructor() {
        this.param = '/:name'
    }

    async get(c) {
        try {
            var imgPath = "/home/ubuntu/sucaiku/stickers/" + c.param.name;
            await c.helper.pipe(imgPath, c.reply)
        }catch(error){
            return c.status(400).send('image error');
        }
    }
}

module.exports = image